#%RAML 1.0

    title: Party API
    baseUri: http://localhost:8081
    version: v1
    
    documentation:
      - title: mod-party API
        content: This documents the API calls that can be made to post party for users, and to get them
    
    types:
      partyLog: !include partyLog.json
      partyLogCollection: !include partyLogCollection.json
      errors: !include raml-util/schemas/errors.schema
    
    traits:
      validate: !include raml-util/traits/validation.raml
      language: !include raml-util/traits/language.raml
      pageable:  !include raml-util/traits/pageable.raml
      searchable: !include raml-util/traits/searchable.raml
    
    resourceTypes:
      collection: !include raml-util/rtypes/collection.raml
      collection-item: !include raml-util/rtypes/item-collection.raml
    
    /party/log:
      displayName: partyLog
      description: 获取一些活动操作或者发布的日志
      type:
        collection:
          schemaCollection: partyLogCollection
          schemaItem: partyLog
          exampleCollection: !include examples/partyLogCollection.sample
          exampleItem: !include examples/partyLog.sample
    
      post:
        is: [validate]
      get:
        is: [
          searchable: {description: "根据特定条件查询并返回一些活动日志", example: "query=( isDel = 0   and username == **  and describe == ** and type == **  )"},
          pageable,
          validate
        ]

    